﻿@model WebUI.Models.MoveMemberViewModel

@{
    ViewBag.Title = "Move Member from " + Model.FromGroupName;
    Layout = "~/Views/Shared/_mainLayout.cshtml";
}

<h2>Move Member from @Model.FromGroupName</h2>
@using (Html.BeginForm("MoveMember", "ManagerADGroup", new { FromGroupName = Model.FromGroupName }))
{
    <b>Select a manager to move:</b>
    <p>
        @Html.DropDownListFor(x => x.MemberName, new SelectList(ViewBag.Members))
    </p>
    <b>Select a group to move the manager:</b>
    <p>
        @Html.DropDownListFor(x => x.ToGroupName, new SelectList(ViewBag.ManagerGroups, "Name", "Name"))
    </p>
    <input type="submit" value="Submit"/>
}